from pathlib import Path
p = Path('F:\\python\\第1章\\员工信息表.xlsx')
p1 = p.with_name('员工档案表.xlsx')
p2 = p.with_suffix('.xls')
print(p1)
print(p2)
